package com.wanban.download.utils


object MergeTsUtils {

    fun transformM3U8ToMp4(downloadTag: String, success: (mp4Path: String) -> Unit, fail: () -> Unit){
//        val proxyM3U8FilePath = PathUtils.getProxyM3UFile(PathUtils.getRootPath(downloadTag))?.absolutePath?:""
//        val outputFilePath = PathUtils.getMp4File(PathUtils.getRootPath(downloadTag))?.absolutePath?:""
//
//        VideoProcessManager.getInstance().transformM3U8ToMp4(proxyM3U8FilePath, outputFilePath, object: IVideoTransformListener {
//            override fun onTransformProgress(progress: Float) {
//            }
//
//            override fun onTransformFailed(e: Exception?) {
//                e?.printStackTrace()
//                Log.e("Merge", "合并出错 -> ${e?.message}")
//                fail()
//            }
//
//            override fun onTransformFinished() {
//                Log.e("Merge", "合并成功")
//                success(outputFilePath)
//            }
//
//        })
    }
}